﻿@{
    ViewBag.Title = "Create";
}

<html>
<head>
    <meta name="viewport" content="width=device-width" />

</head>
<body>
    <h1 style="text-align:center">图书信息添加列表</h1>
    <div style="text-align:center;border:1px solid black;background-color:lightgray;margin:0px auto;">
        @using (Html.BeginForm("Create", "Admin", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <br />
            <p>书名:<input type="text" name="bookname" /></p>
            <p>作者:<input type="text" name="Author" /></p>
            <p>版设:<input type="text" name="Press" /></p>
            <p>价格:<input type="text" name="Price" /></p>
            <p>封面:<input type="text" name="Pic" /></p>
            <p>类型:
                <select name="Type">
                    @foreach (var a in ViewBag.types) 
                    {
                        <option value="@a.typeid">@a.typename</option>
                    }
                </select>
            </p>
            <p>简介:<input type="text" name="Introduced" /></p>
            <p>上架:
                <select name="Show">
                    <option value="1">上架</option>
                    <option value="0">下架</option>
                </select>
            </p>
            <p>     <input type="file" name="Book" id="fileUp" /></p>
            <p>     <input id="ButtonUpload" type="submit" value="提交" /></p>
        }
        <p style="text-align:center"> <a href="/Admin/Home">查看</a></p>
    </div>
</body>
</html>